home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 85 / CD Actual 85 Febrero 2004.iso / Experto / Apache / apache_2.0.48-win32-x86-no_ssl.msi / Data.Cab / F252699_mod_dav.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-04-21  |  9.4 KB  |  237 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
  3. <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
  4. <modulesynopsis metafile="mod_dav.xml.meta">
  5.  
  6. <name>mod_dav</name> 
  7. <description>Distributed Authoring and Versioning
  8. (<a href="http://www.webdav.org/">WebDAV</a>) functionality</description>
  9. <status>Extension</status>
  10. <sourcefile>mod_dav.c</sourcefile>
  11. <identifier>dav_module</identifier>
  12.  
  13. <summary>
  14.     <p>This module provides class 1 and class 2 <a
  15.     href="http://www.webdav.org">WebDAV</a> ('Web-based Distributed
  16.     Authoring and Versioning') functionality for Apache. This
  17.     extension to the HTTP protocol allows creating, moving,
  18.     copying, and deleting resources and collections on a remote web
  19.     server.</p>
  20. </summary>
  21. <seealso><directive module="mod_dav_fs">DavLockDB</directive></seealso>
  22. <seealso><directive module="core">LimitXMLRequestBody</directive></seealso>
  23. <seealso><a href="http://www.webdav.org">WebDAV Resources</a></seealso>
  24.  
  25. <section id="example"><title>Enabling WebDAV</title>
  26.     <p>To enable <module>mod_dav</module>, add the following to a
  27.     container in your <code>httpd.conf</code> file:</p>
  28.  
  29.     <example>Dav On</example>
  30.  
  31.     <p>This enables the DAV file system provider, which is implemented
  32.     by the <module>mod_dav_fs</module> module. Therefore, that module
  33.     must be compiled into the server or loaded at runtime using the
  34.     <directive module="mod_so">LoadModule</directive> directive.</p>
  35.     
  36.     <p>In addition, a location for the DAV lock database must be
  37.     specified in the global section of your <code>httpd.conf</code>
  38.     file using the <directive module="mod_dav_fs">DavLockDB</directive>
  39.     directive:</p>
  40.  
  41.     <example>
  42.       DavLockDB /usr/local/apache2/var/DavLock
  43.     </example>
  44.  
  45.     <p>The directory containing the lock database file must be
  46.     writable by the <directive module="mpm_common">User</directive>
  47.     and <directive module="mpm_common" >Group</directive> under which
  48.     Apache is running.</p>
  49.  
  50.     <p>You may wish to add a <directive module="core" type="section"
  51.     >Limit</directive> clause inside the <directive module="core"
  52.     type="section">Location</directive> directive to limit access to
  53.     DAV-enabled locations. If you want to set the maximum amount of
  54.     bytes that a DAV client can send at one request, you have to use
  55.     the <directive module="core">LimitXMLRequestBody</directive>
  56.     directive. The "normal" <directive module="core"
  57.     >LimitRequestBody</directive> directive has no effect on DAV
  58.     requests.</p>
  59.  
  60.     <example><title>Full Example</title>
  61.       DavLockDB /usr/local/apache2/var/DavLock<br />
  62.       <br />
  63.        <Location /foo><br />
  64.        <indent>
  65.          Dav On<br />
  66.          <br />
  67.          AuthType Basic<br />
  68.          AuthName DAV<br />
  69.          AuthUserFile user.passwd<br />
  70.          <br />
  71.          <LimitExcept GET OPTIONS><br />
  72.          <indent>
  73.            require user admin<br />
  74.          </indent>
  75.          </LimitExcept><br />
  76.        </indent>
  77.        </Location><br />
  78.     </example>
  79.  
  80.    <p><module>mod_dav</module> is a descendent of Greg Stein's <a
  81.    href="http://www.webdav.org/mod_dav/">mod_dav for Apache 1.3</a>.  More
  82.    information about the module is available from that site.</p>
  83. </section>
  84.  
  85. <section id="security"><title>Security Issues</title>
  86.  
  87.     <p>Since DAV access methods allow remote clients to manipulate
  88.     files on the server, you must take particular care to assure that
  89.     your server is secure before enabling <module>mod_dav</module>.</p>
  90.  
  91.     <p>Any location on the server where DAV is enabled should be
  92.     protected by authentication.  The use of HTTP Basic Authentication
  93.     is not recommended. You should use at least HTTP Digest
  94.     Authentication, which is provided by the
  95.     <module>mod_auth_digest</module> module. Nearly all WebDAV clients
  96.     support this authentication method. An alternative is Basic
  97.     Authentication over an <a href="../ssl/">SSL</a> enabled
  98.     connection.</p>
  99.  
  100.     <p>In order for <module>mod_dav</module> to manage files, it must
  101.     be able to write to the directories and files under its control
  102.     using the <directive module="mpm_common">User</directive> and
  103.     <directive module="mpm_common">Group</directive> under which
  104.     Apache is running.  New files created will also be owned by this
  105.     <directive module="mpm_common">User</directive> and <directive
  106.     module="mpm_common">Group</directive>.  For this reason, it is
  107.     important to control access to this account.  The DAV repository
  108.     is considered private to Apache; modifying files outside of Apache
  109.     (for example using FTP or filesystem-level tools) should not be
  110.     allowed.</p>
  111.  
  112.     <p><module>mod_dav</module> may be subject to various kinds of
  113.     denial-of-service attacks.  The <directive
  114.     module="core">LimitXMLRequestBody</directive> directive can be
  115.     used to limit the amount of memory consumed in parsing large DAV
  116.     requests.  The <directive
  117.     module="mod_dav">DavDepthInfinity</directive> directive can be
  118.     used to prevent <code>PROPFIND</code> requests on a very large
  119.     repository from consuming large amounts of memory.  Another
  120.     possible denial-of-service attack involves a client simply filling
  121.     up all available disk space with many large files.  There is no
  122.     direct way to prevent this in Apache, so you should avoid giving
  123.     DAV access to untrusted users.</p>
  124. </section>
  125.  
  126. <section id="complex"><title>Complex Configurations</title>
  127.  
  128.     <p>One common request is to use <module>mod_dav</module> to
  129.     manipulate dynamic files (PHP scripts, CGI scripts, etc).  This is
  130.     difficult because a <code>GET</code> request will always run the
  131.     script, rather than downloading its contents.  One way to avoid
  132.     this is to map two different URLs to the content, one of which
  133.     will run the script, and one of which will allow it to be
  134.     downloaded and manipulated with DAV.</p>
  135.  
  136. <example>
  137. Alias /phparea /home/gstein/php_files<br />
  138. Alias /php-source /home/gstein/php_files<br />
  139. <Location /php-source>
  140. <indent>
  141.     DAV On<br />
  142.     ForceType text/plain<br />
  143. </indent>
  144. </Location>
  145. </example>
  146.  
  147.     <p>With this setup, <code>http://example.com/phparea</code> can be
  148.     used to access the output of the PHP scripts, and
  149.     <code>http://example.com/php-source</code> can be used with a DAV
  150.     client to manipulate them.</p>
  151. </section>
  152.  
  153. <directivesynopsis>
  154. <name>Dav</name>
  155. <description>Enable WebDAV HTTP methods</description>
  156. <syntax>Dav On|Off|<var>provider-name</var></syntax>
  157. <default>Dav Off</default>
  158. <contextlist><context>directory</context></contextlist>
  159.  
  160. <usage>
  161.     <p>Use the <directive>Dav</directive> directive to enable the
  162.     WebDAV HTTP methods for the given container:</p>
  163.  
  164.     <example>
  165.       <Location /foo><br />
  166.       <indent>
  167.         Dav On<br />
  168.       </indent>
  169.       </Location>
  170.     </example>
  171.  
  172.     <p>The value <code>On</code> is actually an alias for the default
  173.     provider <code>filesystem</code> which is served by the <module
  174.     >mod_dav_fs</module> module. Note, that once you have DAV enabled
  175.     for some location, it <em>cannot</em> be disabled for sublocations.
  176.     For a complete configuration example have a look at the <a
  177.     href="#example">section above</a>.</p>
  178.  
  179.     <note type="warning">
  180.       Do not enable WebDAV until you have secured your server. Otherwise
  181.       everyone will be able to distribute files on your system.
  182.     </note>
  183. </usage>
  184. </directivesynopsis>
  185.  
  186. <directivesynopsis>
  187. <name>DavMinTimeout</name>
  188. <description>Minimum amount of time the server holds a lock on
  189. a DAV resource</description>
  190. <syntax>DavMinTimeout <var>seconds</var></syntax>
  191. <default>DavMinTimeout 0</default>
  192. <contextlist><context>server config</context><context>virtual host</context>
  193. <context>directory</context></contextlist>
  194.  
  195. <usage>
  196.     <p>When a client requests a DAV resource lock, it can also
  197.     specify a time when the lock will be automatically removed by
  198.     the server. This value is only a request, and the server can
  199.     ignore it or inform the client of an arbitrary value.</p>
  200.  
  201.     <p>Use the <directive>DavMinTimeout</directive> directive to specify, in
  202.     seconds, the minimum lock timeout to return to a client.
  203.     Microsoft Web Folders defaults to a timeout of 120 seconds; the
  204.     <directive>DavMinTimeout</directive> can override this to a higher value
  205.     (like 600 seconds) to reduce the chance of the client losing
  206.     the lock due to network latency.</p>
  207.  
  208.     <example><title>Example</title>
  209.       <Location /MSWord><br />
  210.       <indent>
  211.         DavMinTimeout 600<br />
  212.       </indent>
  213.       </Location>
  214.     </example>
  215. </usage>     
  216. </directivesynopsis>
  217.  
  218. <directivesynopsis>
  219. <name>DavDepthInfinity</name>
  220. <description>Allow PROPFIND, Depth: Infinity requests</description>
  221. <syntax>DavDepthInfinity on|off</syntax>
  222. <default>DavDepthInfinity off</default>
  223. <contextlist><context>server config</context><context>virtual host</context>
  224. <context>directory</context></contextlist>
  225.  
  226. <usage>
  227.     <p>Use the <directive>DavDepthInfinity</directive> directive to
  228.     allow the processing of <code>PROPFIND</code> requests containing the
  229.     header 'Depth: Infinity'. Because this type of request could constitute
  230.     a denial-of-service attack, by default it is not allowed.</p>
  231. </usage>
  232. </directivesynopsis>
  233.  
  234. </modulesynopsis>
  235.  
  236.  
  237.